<?php

namespace frontend\controllers;
use yii;

class WithdrawController extends FController
{
	public $layout='left.php';

	public function init(){
        parent::init();
        if(Yii::$app->user->isGuest){
            $this->redirect('/site/login');
            Yii::$app->end();
        }
    }

	//资金明细
    public function actionIndex()
    {
        return $this->render('index');
    }
    //资金提现申请待确认
    public function actionSuccess()
    {
    	return $this->render('success');
    }

    //充值页面
    public function actionCharge()
    {
        return $this->render('charge');
    }
    //充值失败
    public function actionFail()
    {
        $this->layout="main.php";
        return $this->render('fail');
    }

}
